<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/5/16
  Time: 10:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<!-- JSTL 核心标签库 -->
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>登录页面</title>
</head>
<body>
    <div>
        <h5>服务器：${pageContext.request.localPort}</h5>
        <h5>SessionId: ${pageContext.session.id}</h5>
    </div>
    <form action="login", method="post">
        用户名：<input type="text" name="username" />
        密码：<input type="password" name="password" />
        <input type="submit" value="提交"/>
    </form>

    <c:if test="${not empty errMsg}">
        <div>
            错误消息：<b style="color: red">${errMsg}</b>
        </div>
    </c:if>

</body>
</html>
